# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer:
pkgname=catcodec
pkgver=1.0.5
pkgrel=2
pkgdesc="Decodes and encodes sample catalogues for OpenTTD"
url="https://www.openttd.org/downloads/catcodec-releases/latest"
arch="all"
license="GPL-2.0"
options="!check" # to testsuite
subpackages="$pkgname-doc"
source="https://cdn.openttd.org/catcodec-releases/$pkgver/catcodec-$pkgver-source.tar.xz"

build() {
	make VERBOSE=1
}

package() {
	install -Dm755 catcodec "$pkgdir"/usr/bin/catcodec
	install -Dm644 docs/catcodec.1 \
		"$pkgdir"/usr/share/man/man1/catcodec.1

	install -Dm644 changelog.txt docs/readme.txt \
		-t "$pkgdir"/usr/share/doc/catcodec/
}

sha512sums="
e6e17da17f2449ff5d3a18c34ba3125d475a481ef1dc73ba03dac32fc8523a8929d2cbdfda5f647a0226aa007a217fc90c85ec4cc46937f75e15a596277e0db5  catcodec-1.0.5-source.tar.xz
"
